#include<bits/stdc++.h>
using namespace std;
inline int read(){
	int x=0;
	char c=getchar();
	while(c<'0'||c>'9')c=getchar();
	while(c>='0'&&c<='9'){
		x=(x<<1)+(x<<3)+(c^48);
		c=getchar();
	}return x;
}const int N=1e5+5;
int n,a[N],ans=0,c=0;
int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	n=read();
	for(int i=1;i<=n;i++){
		int x=read();
		if(c<x)c=x;
		a[x]++;
	}for(int i=1;i<=c;i++)if(a[i]!=0)ans=max(0,ans-a[i])+a[i];
	printf("%d\n",ans);
	return 0;
}
